#0 [10501]PDOException in PDOConnection.php line 836

SQLSTATE[HY000] [2002] Connection refused

  1. } else {
  2. if ($this->reConnectTimes < 4 && $this->isBreak($e)) {
  3. $this->reConnectTimes++;
  4. return $this->close()->getPDOStatement($sql, $bind, $master, $procedure);
  5. }
  6. }
  7. if ($e instanceof \PDOException) {
  8. throw new PDOException($e, $this->config, $this->getLastsql());
  9. } else {
  10. throw $e;
  11. }
  12. }
  13. }
  14. /**
  15. * 执行语句.
  16. *

Call Stack

  1. in PDOConnection.php line 836
  2. at PDOConnection->getPDOStatement() in PDOConnection.php line 746
  3. at PDOConnection->pdoQuery() in PDOConnection.php line 923
  4. at PDOConnection->find() in BaseQuery.php line 1462
  5. at BaseQuery->find() in AuthService.php line 192
  6. at AuthService->getAdminInfo() in AuthService.php line 76
  7. at AuthService->__construct() in BaseController.php line 48
  8. at BaseController->__construct()
  9. at ReflectionClass->newInstanceArgs() in Container.php line 396
  10. at Container->invokeClass() in Container.php line 253
  11. at Container->make() in Controller.php line 187
  12. at Controller->controller() in Controller.php line 74
  13. at Controller->exec() in Dispatch.php line 52
  14. at Dispatch->run() in Route.php line 755
  15. at Route->think\{closure}() in Pipeline.php line 59
  16. at Pipeline->think\{closure}() in Pipeline.php line 66
  17. at Pipeline->then() in Route.php line 756
  18. at Route->dispatch() in Http.php line 208
  19. at Http->dispatchToRoute() in Http.php line 198
  20. at Http->think\{closure}() in Pipeline.php line 59
  21. at Pipeline->think\{closure}() in MultiApp.php line 51
  22. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  23. at Pipeline->think\{closure}() in Pipeline.php line 66
  24. at Pipeline->then() in MultiApp.php line 52
  25. at MultiApp->handle()
  26. at call_user_func() in Middleware.php line 134
  27. at Middleware->think\{closure}() in Pipeline.php line 85
  28. at Pipeline->think\{closure}() in SessionInit.php line 58
  29. at SessionInit->handle()
  30. at call_user_func() in Middleware.php line 134
  31. at Middleware->think\{closure}() in Pipeline.php line 85
  32. at Pipeline->think\{closure}() in Pipeline.php line 66
  33. at Pipeline->then() in Http.php line 199
  34. at Http->runWithRequest() in Http.php line 162
  35. at Http->run() in index.php line 25

Exception Datas

PDO Error Info
SQLSTATE HY000
Driver Error Code 2002
Driver Error Message Connection refused
Database Status
Error Code 10501
Error Message SQLSTATE[HY000] [2002] Connection refused
Error SQL
Database Config
type mysql
hostname 127.0.0.1
database 16757com
hostport 3306
dsn
params []
charset utf8
prefix wdphp_
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
fields_cache true
trigger_sql true
builder
query
break_reconnect false
break_match_str []
auto_param_bind true
schema_cache_path /www/wwwroot/www.16757.com/runtime/schema/

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_X_FORWARDED_FOR 220.181.57.216
HTTP_CLIENT_IP 220.181.57.216
HTTP_REFERER //so/ffmpeg%20configure%20%E5%8F%82%E6%95%B0%E7%BF%BB%E8%AF%91.html
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
PATH_INFO
HTTP_HOST www.16757.com
REDIRECT_STATUS 200
SERVER_NAME www.16757.com
SERVER_PORT 443
SERVER_ADDR 103.26.78.158
REMOTE_PORT 41714
REMOTE_ADDR 47.243.58.43
SERVER_SOFTWARE nginx/1.27.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.16757.com/public
DOCUMENT_URI /index.php
REQUEST_URI /
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/www.16757.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1731462096.3122
REQUEST_TIME 1731462096